package grun

import log "github.com/sirupsen/logrus"

type LogMine struct {
	Logger *log.Logger
}

func (lm *LogMine) Println(args ...interface{}) {
	lm.Logger.Println(args...)
}

func (lm *LogMine) Errorln(args ...interface{}) {
	lm.Logger.Errorln(args...)
}

func NewLogMine(logger *log.Logger) *LogMine {
	if logger == nil {
		logger = log.New()
	}
	return &LogMine{Logger: logger}
}
